package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;


/**
 * The persistent class for the PBZHOUQI database table.
 * 
 */
@Entity
@NamedQuery(name="Pbzhouqi.findAll", query="SELECT p FROM Pbzhouqi p")
public class Pbzhouqi implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PBZHOUQI_ZHOUQIID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PBZHOUQI_ZHOUQIID_GENERATOR")
	private long zhouqiid;

	private String worknf;

	private String zhouqfive;

	private String zhouqfour;

	private String zhouqione;

	private String zhouqseve;

	private String zhouqsix;

	private String zhouqthree;

	private String zhouqtwe;

	//bi-directional many-to-one association to Paibanplan
	@OneToMany(mappedBy="pbzhouqi")
	@JSONField(serialize=false)
	private List<Paibanplan> paibanplans;

	public Pbzhouqi() {
	}

	public long getZhouqiid() {
		return this.zhouqiid;
	}

	public void setZhouqiid(long zhouqiid) {
		this.zhouqiid = zhouqiid;
	}

	public String getWorknf() {
		return this.worknf;
	}

	public void setWorknf(String worknf) {
		this.worknf = worknf;
	}

	public String getZhouqfive() {
		return this.zhouqfive;
	}

	public void setZhouqfive(String zhouqfive) {
		this.zhouqfive = zhouqfive;
	}

	public String getZhouqfour() {
		return this.zhouqfour;
	}

	public void setZhouqfour(String zhouqfour) {
		this.zhouqfour = zhouqfour;
	}

	public String getZhouqione() {
		return this.zhouqione;
	}

	public void setZhouqione(String zhouqione) {
		this.zhouqione = zhouqione;
	}

	public String getZhouqseve() {
		return this.zhouqseve;
	}

	public void setZhouqseve(String zhouqseve) {
		this.zhouqseve = zhouqseve;
	}

	public String getZhouqsix() {
		return this.zhouqsix;
	}

	public void setZhouqsix(String zhouqsix) {
		this.zhouqsix = zhouqsix;
	}

	public String getZhouqthree() {
		return this.zhouqthree;
	}

	public void setZhouqthree(String zhouqthree) {
		this.zhouqthree = zhouqthree;
	}

	public String getZhouqtwe() {
		return this.zhouqtwe;
	}

	public void setZhouqtwe(String zhouqtwe) {
		this.zhouqtwe = zhouqtwe;
	}

	public List<Paibanplan> getPaibanplans() {
		return this.paibanplans;
	}

	public void setPaibanplans(List<Paibanplan> paibanplans) {
		this.paibanplans = paibanplans;
	}

	public Paibanplan addPaibanplan(Paibanplan paibanplan) {
		getPaibanplans().add(paibanplan);
		paibanplan.setPbzhouqi(this);

		return paibanplan;
	}

	public Paibanplan removePaibanplan(Paibanplan paibanplan) {
		getPaibanplans().remove(paibanplan);
		paibanplan.setPbzhouqi(null);

		return paibanplan;
	}

}